package com.fc.v2.model.auto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import cn.hutool.core.util.StrUtil;

/**
 * 蘑菇钉信息 MgdInfoExample
 * @author fuce_自动生成
 * @date 2021-04-24 09:13:43
 */
public class MgdInfoExample {

    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MgdInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }
        
				
        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(Integer value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(Integer value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }
        
				
        public Criteria andNicknameIsNull() {
            addCriterion("nickname is null");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNotNull() {
            addCriterion("nickname is not null");
            return (Criteria) this;
        }

        public Criteria andNicknameEqualTo(String value) {
            addCriterion("nickname =", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotEqualTo(String value) {
            addCriterion("nickname <>", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThan(String value) {
            addCriterion("nickname >", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThanOrEqualTo(String value) {
            addCriterion("nickname >=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThan(String value) {
            addCriterion("nickname <", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThanOrEqualTo(String value) {
            addCriterion("nickname <=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLike(String value) {
            addCriterion("nickname like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotLike(String value) {
            addCriterion("nickname not like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameIn(List<String> values) {
            addCriterion("nickname in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotIn(List<String> values) {
            addCriterion("nickname not in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameBetween(String value1, String value2) {
            addCriterion("nickname between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotBetween(String value1, String value2) {
            addCriterion("nickname not between", value1, value2, "nickname");
            return (Criteria) this;
        }
        
				
        public Criteria andPhoneIsNull() {
            addCriterion("phone is null");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNotNull() {
            addCriterion("phone is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneEqualTo(String value) {
            addCriterion("phone =", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotEqualTo(String value) {
            addCriterion("phone <>", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThan(String value) {
            addCriterion("phone >", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("phone >=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThan(String value) {
            addCriterion("phone <", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThanOrEqualTo(String value) {
            addCriterion("phone <=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLike(String value) {
            addCriterion("phone like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotLike(String value) {
            addCriterion("phone not like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneIn(List<String> values) {
            addCriterion("phone in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotIn(List<String> values) {
            addCriterion("phone not in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneBetween(String value1, String value2) {
            addCriterion("phone between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotBetween(String value1, String value2) {
            addCriterion("phone not between", value1, value2, "phone");
            return (Criteria) this;
        }
        
				
        public Criteria andEmailIsNull() {
            addCriterion("email is null");
            return (Criteria) this;
        }

        public Criteria andEmailIsNotNull() {
            addCriterion("email is not null");
            return (Criteria) this;
        }

        public Criteria andEmailEqualTo(String value) {
            addCriterion("email =", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotEqualTo(String value) {
            addCriterion("email <>", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailGreaterThan(String value) {
            addCriterion("email >", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailGreaterThanOrEqualTo(String value) {
            addCriterion("email >=", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailLessThan(String value) {
            addCriterion("email <", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailLessThanOrEqualTo(String value) {
            addCriterion("email <=", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailLike(String value) {
            addCriterion("email like", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotLike(String value) {
            addCriterion("email not like", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailIn(List<String> values) {
            addCriterion("email in", values, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotIn(List<String> values) {
            addCriterion("email not in", values, "email");
            return (Criteria) this;
        }

        public Criteria andEmailBetween(String value1, String value2) {
            addCriterion("email between", value1, value2, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotBetween(String value1, String value2) {
            addCriterion("email not between", value1, value2, "email");
            return (Criteria) this;
        }
        
				
        public Criteria andMgdUserIsNull() {
            addCriterion("mgd_user is null");
            return (Criteria) this;
        }

        public Criteria andMgdUserIsNotNull() {
            addCriterion("mgd_user is not null");
            return (Criteria) this;
        }

        public Criteria andMgdUserEqualTo(String value) {
            addCriterion("mgd_user =", value, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserNotEqualTo(String value) {
            addCriterion("mgd_user <>", value, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserGreaterThan(String value) {
            addCriterion("mgd_user >", value, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserGreaterThanOrEqualTo(String value) {
            addCriterion("mgd_user >=", value, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserLessThan(String value) {
            addCriterion("mgd_user <", value, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserLessThanOrEqualTo(String value) {
            addCriterion("mgd_user <=", value, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserLike(String value) {
            addCriterion("mgd_user like", value, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserNotLike(String value) {
            addCriterion("mgd_user not like", value, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserIn(List<String> values) {
            addCriterion("mgd_user in", values, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserNotIn(List<String> values) {
            addCriterion("mgd_user not in", values, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserBetween(String value1, String value2) {
            addCriterion("mgd_user between", value1, value2, "mgdUser");
            return (Criteria) this;
        }

        public Criteria andMgdUserNotBetween(String value1, String value2) {
            addCriterion("mgd_user not between", value1, value2, "mgdUser");
            return (Criteria) this;
        }
        
				
        public Criteria andMgdPassIsNull() {
            addCriterion("mgd_pass is null");
            return (Criteria) this;
        }

        public Criteria andMgdPassIsNotNull() {
            addCriterion("mgd_pass is not null");
            return (Criteria) this;
        }

        public Criteria andMgdPassEqualTo(String value) {
            addCriterion("mgd_pass =", value, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassNotEqualTo(String value) {
            addCriterion("mgd_pass <>", value, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassGreaterThan(String value) {
            addCriterion("mgd_pass >", value, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassGreaterThanOrEqualTo(String value) {
            addCriterion("mgd_pass >=", value, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassLessThan(String value) {
            addCriterion("mgd_pass <", value, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassLessThanOrEqualTo(String value) {
            addCriterion("mgd_pass <=", value, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassLike(String value) {
            addCriterion("mgd_pass like", value, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassNotLike(String value) {
            addCriterion("mgd_pass not like", value, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassIn(List<String> values) {
            addCriterion("mgd_pass in", values, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassNotIn(List<String> values) {
            addCriterion("mgd_pass not in", values, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassBetween(String value1, String value2) {
            addCriterion("mgd_pass between", value1, value2, "mgdPass");
            return (Criteria) this;
        }

        public Criteria andMgdPassNotBetween(String value1, String value2) {
            addCriterion("mgd_pass not between", value1, value2, "mgdPass");
            return (Criteria) this;
        }
        
				
        public Criteria andLastSinginIsNull() {
            addCriterion("last_singin is null");
            return (Criteria) this;
        }

        public Criteria andLastSinginIsNotNull() {
            addCriterion("last_singin is not null");
            return (Criteria) this;
        }

        public Criteria andLastSinginEqualTo(Date value) {
            addCriterion("last_singin =", value, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginNotEqualTo(Date value) {
            addCriterion("last_singin <>", value, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginGreaterThan(Date value) {
            addCriterion("last_singin >", value, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginGreaterThanOrEqualTo(Date value) {
            addCriterion("last_singin >=", value, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginLessThan(Date value) {
            addCriterion("last_singin <", value, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginLessThanOrEqualTo(Date value) {
            addCriterion("last_singin <=", value, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginLike(Date value) {
            addCriterion("last_singin like", value, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginNotLike(Date value) {
            addCriterion("last_singin not like", value, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginIn(List<Date> values) {
            addCriterion("last_singin in", values, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginNotIn(List<Date> values) {
            addCriterion("last_singin not in", values, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginBetween(Date value1, Date value2) {
            addCriterion("last_singin between", value1, value2, "lastSingin");
            return (Criteria) this;
        }

        public Criteria andLastSinginNotBetween(Date value1, Date value2) {
            addCriterion("last_singin not between", value1, value2, "lastSingin");
            return (Criteria) this;
        }
        
				
        public Criteria andStuteIsNull() {
            addCriterion("stute is null");
            return (Criteria) this;
        }

        public Criteria andStuteIsNotNull() {
            addCriterion("stute is not null");
            return (Criteria) this;
        }

        public Criteria andStuteEqualTo(Integer value) {
            addCriterion("stute =", value, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteNotEqualTo(Integer value) {
            addCriterion("stute <>", value, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteGreaterThan(Integer value) {
            addCriterion("stute >", value, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteGreaterThanOrEqualTo(Integer value) {
            addCriterion("stute >=", value, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteLessThan(Integer value) {
            addCriterion("stute <", value, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteLessThanOrEqualTo(Integer value) {
            addCriterion("stute <=", value, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteLike(Integer value) {
            addCriterion("stute like", value, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteNotLike(Integer value) {
            addCriterion("stute not like", value, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteIn(List<Integer> values) {
            addCriterion("stute in", values, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteNotIn(List<Integer> values) {
            addCriterion("stute not in", values, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteBetween(Integer value1, Integer value2) {
            addCriterion("stute between", value1, value2, "stute");
            return (Criteria) this;
        }

        public Criteria andStuteNotBetween(Integer value1, Integer value2) {
            addCriterion("stute not between", value1, value2, "stute");
            return (Criteria) this;
        }
        
				
        public Criteria andMemberIdIsNull() {
            addCriterion("member_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNotNull() {
            addCriterion("member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIdEqualTo(Integer value) {
            addCriterion("member_id =", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotEqualTo(Integer value) {
            addCriterion("member_id <>", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThan(Integer value) {
            addCriterion("member_id >", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("member_id >=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThan(Integer value) {
            addCriterion("member_id <", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThanOrEqualTo(Integer value) {
            addCriterion("member_id <=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLike(Integer value) {
            addCriterion("member_id like", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotLike(Integer value) {
            addCriterion("member_id not like", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdIn(List<Integer> values) {
            addCriterion("member_id in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotIn(List<Integer> values) {
            addCriterion("member_id not in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdBetween(Integer value1, Integer value2) {
            addCriterion("member_id between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotBetween(Integer value1, Integer value2) {
            addCriterion("member_id not between", value1, value2, "memberId");
            return (Criteria) this;
        }
        
			
		 public Criteria andLikeQuery(MgdInfo record) {
		 	List<String> list= new ArrayList<String>();
		 	List<String> list2= new ArrayList<String>();
        	StringBuffer buffer=new StringBuffer();
			if(record.getId()!=null&&StrUtil.isNotEmpty(record.getId().toString())) {
    			 list.add("ifnull(id,'')");
    		}
			if(record.getNickname()!=null&&StrUtil.isNotEmpty(record.getNickname().toString())) {
    			 list.add("ifnull(nickname,'')");
    		}
			if(record.getPhone()!=null&&StrUtil.isNotEmpty(record.getPhone().toString())) {
    			 list.add("ifnull(phone,'')");
    		}
			if(record.getEmail()!=null&&StrUtil.isNotEmpty(record.getEmail().toString())) {
    			 list.add("ifnull(email,'')");
    		}
			if(record.getMgdUser()!=null&&StrUtil.isNotEmpty(record.getMgdUser().toString())) {
    			 list.add("ifnull(mgd_user,'')");
    		}
			if(record.getMgdPass()!=null&&StrUtil.isNotEmpty(record.getMgdPass().toString())) {
    			 list.add("ifnull(mgd_pass,'')");
    		}
			if(record.getLastSingin()!=null&&StrUtil.isNotEmpty(record.getLastSingin().toString())) {
    			 list.add("ifnull(last_singin,'')");
    		}
			if(record.getStute()!=null&&StrUtil.isNotEmpty(record.getStute().toString())) {
    			 list.add("ifnull(stute,'')");
    		}
			if(record.getMemberId()!=null&&StrUtil.isNotEmpty(record.getMemberId().toString())) {
    			 list.add("ifnull(member_id,'')");
    		}
			if(record.getId()!=null&&StrUtil.isNotEmpty(record.getId().toString())) {
    			list2.add("'%"+record.getId()+"%'");
    		}
			if(record.getNickname()!=null&&StrUtil.isNotEmpty(record.getNickname().toString())) {
    			list2.add("'%"+record.getNickname()+"%'");
    		}
			if(record.getPhone()!=null&&StrUtil.isNotEmpty(record.getPhone().toString())) {
    			list2.add("'%"+record.getPhone()+"%'");
    		}
			if(record.getEmail()!=null&&StrUtil.isNotEmpty(record.getEmail().toString())) {
    			list2.add("'%"+record.getEmail()+"%'");
    		}
			if(record.getMgdUser()!=null&&StrUtil.isNotEmpty(record.getMgdUser().toString())) {
    			list2.add("'%"+record.getMgdUser()+"%'");
    		}
			if(record.getMgdPass()!=null&&StrUtil.isNotEmpty(record.getMgdPass().toString())) {
    			list2.add("'%"+record.getMgdPass()+"%'");
    		}
			if(record.getLastSingin()!=null&&StrUtil.isNotEmpty(record.getLastSingin().toString())) {
    			list2.add("'%"+record.getLastSingin()+"%'");
    		}
			if(record.getStute()!=null&&StrUtil.isNotEmpty(record.getStute().toString())) {
    			list2.add("'%"+record.getStute()+"%'");
    		}
			if(record.getMemberId()!=null&&StrUtil.isNotEmpty(record.getMemberId().toString())) {
    			list2.add("'%"+record.getMemberId()+"%'");
    		}
        	buffer.append(" CONCAT(");
	        buffer.append(StrUtil.join(",",list));
        	buffer.append(")");
        	buffer.append(" like CONCAT(");
        	buffer.append(StrUtil.join(",",list2));
        	buffer.append(")");
        	if(!" CONCAT() like CONCAT()".equals(buffer.toString())) {
        		addCriterion(buffer.toString());
        	}
        	return (Criteria) this;
        }
        
        public Criteria andLikeQuery2(String searchText) {
		 	List<String> list= new ArrayList<String>();
        	StringBuffer buffer=new StringBuffer();
    		list.add("ifnull(id,'')");
    		list.add("ifnull(nickname,'')");
    		list.add("ifnull(phone,'')");
    		list.add("ifnull(email,'')");
    		list.add("ifnull(mgd_user,'')");
    		list.add("ifnull(mgd_pass,'')");
    		list.add("ifnull(last_singin,'')");
    		list.add("ifnull(stute,'')");
    		list.add("ifnull(member_id,'')");
        	buffer.append(" CONCAT(");
	        buffer.append(StrUtil.join(",",list));
        	buffer.append(")");
        	buffer.append("like '%");
        	buffer.append(searchText);
        	buffer.append("%'");
        	addCriterion(buffer.toString());
        	return (Criteria) this;
        }
        
}
	
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}